package vip.ola.core.common.constant;

/**
 * Created by admin on 2016/4/27.
 */
public interface Constant {

    // 账户业务模块流水号前缀(account)
    String AC_BIZ_SEQUENCE_NO_PREFIX = "ac";
    // 账户业务模块流水号前缀(config)
    String CF_BIZ_SEQUENCE_NO_PREFIX = "cf";

    String MGR_AUTH_SECRET = "olaAbc(%^&*)!!195Gqwe";

    String UTF8 = "UTF-8";

    int MAX_PAGE_SIZE = 100;

    byte PUB_YES = 1;   // 是
    byte PUB_NO = 0;    // 否

    Integer STATUS_YES = 1;   // 是
    Integer STATUS_NO = 0;    // 否

    Integer DELETE_YES = 1;   // 是
    Integer DELETE_NO = 0;    // 否

    byte SYSTEM_MGR = 1;    // 运营系统
    byte SYSTEM_MCH = 2;    // 商户系统
    byte SYSTEM_AGENT = 3;    // 代理商系统
    byte SYSTEM_CODE = 4;    // 码商系统

    String MCH_ROLE_NO = "ROLE_MCH_NO";                // 无权限
    String MCH_ROLE_NORMAL = "ROLE_MCH_NORMAL";        // 正常

    String AGENT_ROLE_NO = "ROLE_AGENT_NO";                // 无权限
    String AGENT_ROLE_NORMAL = "ROLE_AGENT_NORMAL";        // 正常

    String CODE_ROLE_NO = "ROLE_CODE_NO";                // 无权限
    String CODE_ROLE_NORMAL = "ROLE_CODE_NORMAL";        // 正常

    // 0-无密码,1-仅密码验证,2-密码+谷歌组合验证',
    Byte SECURITY_TYPE_NONE = 0;
    Byte SECURITY_TYPE_PASS = 1;
    Byte SECURITY_TYPE_PASS_GOOGLE = 2;

    Integer SETT_STATUS_AUDIT_ING = 1;         // 等待审核
    Integer SETT_STATUS_AUDIT_OK = 2;          // 已审核
    Integer SETT_STATUS_AUDIT_NOT = 3;         // 审核不通过
    Integer SETT_STATUS_REMIT_ING = 4;         // 打款中
    Integer SETT_STATUS_REMIT_SUCCESS = 5;     // 打款成功
    Integer SETT_STATUS_REMIT_FAIL = 6;        // 打款失败

    Integer SETT_CODE_TYPE = 1;        // 码商
    Integer SETT_PASSAGE_TYPE = 2;     // 三方通道

    String PASSWORD_SALT = "ola123%^&*(789";
    String MGR_SUPER_PASSWORD = "POP1314588";                // 运营平台超级密码(运营平台涉及金额操作时会验证)
    String MCH_DEFAULT_PASSWORD = "tdf123456";                // 商户登录默认密码
    String MCH_DEFAULT_PAY_PASSWORD = "tdf123456";            // 商户支付默认密码

    // 随机通讯码不重复的时间间隔(ms)
    long RPC_SEQ_NO_NOT_REPEAT_INTERVAL = 5 * 1000;

    // 服务端返回map中业务数据结果对应的key名称
    String BIZ_RESULT_KEY = "bizResult";

    String LOGIN_VERIFY_CODE = "loginVerifyCode";

    String MGR_CONTROLLER_ROOT_PATH = "/api";
    String AGENT_CONTROLLER_ROOT_PATH = "/api";
    String MCH_CONTROLLER_ROOT_PATH = "/api";
    String CODE_CONTROLLER_ROOT_PATH = "/code";

    String SYS_CONFIG_CODE = "code";
    String SYS_CONFIG_SETT = "sett";

    String IF_CODE_WECHAT_FLAG = "wechat";
    String IF_CODE_ALIPAY_FLAG = "alipay";
    String IF_CODE_JUHE_FLAG = "juhe";

    String IF_CODE_ALIPAY_QR = "alipay_qr";
    String IF_CODE_ALIPAY_QR_H5_ONE = "alipay_qr_h5_one";
    String IF_CODE_ALIPAY_QR_H5_TWO = "alipay_qr_h5_two";
    String IF_CODE_ALIPAY_QR_TRANSFER = "alipay_qr_transfer";

    // 操作系统类型
    Integer ANDROID = 1;
    Integer IOS = 2;
    Integer OTHER = 3;
}
